package com.qf.bbapi.util;


public class StringUtil {
    /**
     * 校验字符串是否非空*/
    public static boolean isNotEmpty(String... strs){
        boolean r=true;
        for(String s:strs){
            if(s==null|| s.length()==0){
                r=false;
                break;
            }
        }
        return r;
    }
    /**
     * 校验手机号*/
    public static boolean isPhone(String phone){
        if(isNotEmpty(phone)){
            return phone.matches("^1[3-9][0-9]{9}$");
        }
        return false;
    }
}
